package com.wuchao.spring.IocAndAop;

import com.wuchao.entity.User;
import com.wuchao.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author wuchao66
 * @Date 2022/7/4 11:03
 * @Version 1.0
 */

@Service("TheIoc")
public class TheIoc {
    @Resource
    private Stu stu;//需要对象入参
    //private UserMapper userMapper;
    public void show(){
        System.out.println("注解成功了吗？"+stu.getName());
    }
}
